-
-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better documentation #293
Better documentation #293
Conversation
On a similar note I would be interested in having a blog on here, with the typical rust theme (But it doesn’t have to be) that can be statically generated. Then shown from github.io Right now I’m using my own site. I’ll make an issue for it. |
These additions look good, are there any other areas you wanted help on or planned to fill in? |
I would like to document all of |
We can add automatic documentation generation to the GitHub pipelines that upload the docs to GitHub pages. |
Thats amazing! I did not know that such a feature existed. |
We already have the docs.rs documentation which automatically generates on every release, I don’t understand what the github pages would add? I may be missing the idea here though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very nice :) Thanks for the work!
|
For newcomers to the project that want to contribute, it would be great! |
About this particular PR, I would put the links without showing the full URL, as we did for the first case, since URLs are too long in my opinion. I'm doing the same with the new parser subdivision. |
About this, I would leave the |
I don't think |
I would add some module-level documentation in both //! This module implements the `Pos` structure, which represents a position in the source code. |
@Razican and @jasonwilliams I would like your feedback on this. |
Will try and look today |
I've been reading the documentation a bit, and maybe it makes more sense in
I wouldn't duplicate documentation, it seems easy to mess up. Maybe we could say something like this: /// The else keyword.
///
/// This keyword precedes an `else` block related to an `if` block. For more information:
/// - [If `Node` documentation][link_to_if_node]
/// - [MDN documentation][same_link_as_now]
/// - [ECMAScript specification][same_link_as_now] What do you think? |
Thanks for the feedback! That really helped! :) |
Have you been running I've added We should add |
I've been looking at this through the rendered doc that cargo doc generated. |
Why do we have |
From what i understand they don't. Example: getField will evaluate what's inside the square brackets then fetches the resolved value as a field bar could be anything, so it will be evaluated first, then the (string) result of that it used for the look up. Node::GetConstField(ref obj, ref field) => {
let val_obj = self.run(obj)?;
Ok(val_obj.borrow().get_field_slice(field))
}
Node::GetField(ref obj, ref field) => {
let val_obj = self.run(obj)?;
let val_field = self.run(field)?;
Ok(val_obj
.borrow()
.get_field_slice(&val_field.borrow().to_string()))
}
|
Interesting. So It is an optimization. |
Are there any I can start to fill in? |
If you could fill in |
faa5a18
to
d06d18f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking
Looks great! |
This is for improving the documentation of the
boa
project.Any feedback on how we can improve the documentation of the code, would be very helpful.
Syntax
Builtins